const webpackDevServer = require('webpack-dev-server');
const Webpack = require('webpack');
const webpackConfig = require('./webpack.config.js');
let serverConfig = {
    hot: true,
    port: 8000,
    host: '0.0.0.0',
}
const compiler = Webpack(webpackConfig);
const server = new webpackDevServer(compiler, serverConfig);
server.listen(serverConfig.port, serverConfig.host,()=>{
    console.log(`http://localhost:${serverConfig.port}/`)
});